package y2016.date0509.pm.西游记人物;

import org.junit.jupiter.api.Test;

public class 西游记 {

    @Test
    public void main() throws Exception {
        System.out.println("《西游记》开始了\n");
        Thread.sleep(1000);
        System.out.println("……女娲补天结束了...在花果山留下一块五彩石\n");
        Thread.sleep(1000);
        System.out.println("五彩石每天吸收日月精华...\n");
        Thread.sleep(3000);//五彩石继续吸收中
        System.out.println("过了n多万年，终于五彩石内孕仙胎...\n");
        Thread.sleep(1000);

        孙悟空 wuKong = new 孙悟空();//创建对象
        wuKong.setHeight(1.6);//悟空大概1.6米高
        wuKong.setWeight(70);//悟空大概70斤，虽然是石头


        System.out.println("石破天惊，花果山天产石猴出世了，目射金光，直冲牛斗，玉帝命千里眼顺风耳查探……\n");
        Thread.sleep(1000);

        System.out.println("石猴种族：" + wuKong.getRecist());
        System.out.println("千里眼顺风耳报告：石猴身高大概" + wuKong.getHeight());
        System.out.println("石猴体重大概：" + wuKong.getWeight());
        Thread.sleep(1000);

        System.out.println("\n……石猴当上猴王，因感生老病死，出海遍寻真师……\n");
        Thread.sleep(3000);//石猴继续寻找中...

        System.out.println("过了数年……到了“灵台方寸山，斜月三星洞”……拜师菩提老祖\n");
        wuKong.setName("孙悟空");
        System.out.println("菩提老祖为石猴取名：" + wuKong.getName());
        Thread.sleep(1000);

        System.out.println("\n……悟空得授法术……");
        Thread.sleep(1000);

        System.out.println("悟空施展法天相地……\n");
        wuKong.setHeight(999);
        wuKong.setWeight(999);
        Thread.sleep(1000);

        System.out.println("于是悟空身高：" + wuKong.getHeight());
        System.out.println("体重：" + wuKong.getWeight());

        System.out.println("\n…………………………………………");
        System.out.println("……取经大业开始……");
        Thread.sleep(3000);
        System.out.println("……功德圆满……");
        System.out.println("--西游记完--");
    }

}


